function Omor_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Vous osez me défier?!")
Unit:RegisterEvent("Omor_Spell1", 10000, 0)
Unit:RegisterEvent("Omor_Spell2", 20000, 0)
Unit:RegisterEvent("Omor_Spell3", 15000, 0)
Unit:RegisterEvent("Omor_Spell4", 35000, 0)
Unit:RegisterEvent("Omor_Spell5", 8000, 0)
Unit:RegisterEvent("Omor_Spell6", 15000, 0)
end

function Omor_Spell1(Unit, Event)
if Unit:GetHealthPct() < 20 then
Unit:CastSpell(31901)
end

function Omor_Spell2(Unit, Event)
Unit:FullCastSpellOnTarget(30638, Unit:GetRandomPlayer(0))
end

function Omor_Spell3(Unit, Event)
Unit:SendChatMessage(14, 0, "A-Kreesh!")
Unit:FullCastSpellOnTraget(30695, Unit:GetRandomPlayer(0))
end

function Omor_Spell4(Unit, Event)
Unit:SendChatMessage(14, 0, "Achor-she-ki! Fêstoyez mes animaux compagnie! Mangez à vous en combler!")
Unit:CastSpell(30707)
end

function Omor_Spell5(Unit, Event)
Unit:FullCastSpellOnTraget(30686, Unit:GetRandomPlayer(0))
end

function Omor_Spell6(Unit, Event)
Unit:FullCastSpellOnTraget(30637, Unit:GetRandomPlayer(0))
end

function Omor_OnLeaveCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Je suis victorieux !")
Unit:RemoveEvents() 
end

function Omor_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(14, 0, "Meurt gringalet !")
end

function Omor_OnDied(Unit, Event)
Unit:SendChatMessage(14, 0, "Ce n'est... pas terminé.")
Unit:RemoveEvents() 
end

RegisterUnitEvent(17308, 1, "Omor_OnCombat")
RegisterUnitEvent(17308, 2, "Omor_OnLeaveCombat")
RegisterUnitEvent(17308, 3, "Omor_OnKilledTarget")
RegisterUnitEvent(17308, 4, "Omor_OnDied")